std::exp

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       exp( float arg );

double      exp( double arg );

long double exp( long double arg );

Computes the e (Euler's number, 2.7182818) raised to the given power arg

Parameters

arg - floating point value

Return value

e raised to the power arg

If the result is too large for the underlying type, range error occurs and HUGE_VAL is returned.

See also

log
natural logarithm (to base e)
(function)
pow
returns the given number raised to the given power
(function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages